package main


func minOperations(boxes string) []int {
	ans := make([]int, len(boxes))

	for i:=range boxes{
		for j,c := range boxes{
			if c=='1' {
				ans[i] += abs(i-j)
			}
		}
	}
	return ans
}

func abs(x int) int {
	if x<0 {return -x}
	return x
}